package cn.edu.wynu.d2_polymorphism;

public class Teacher extends People {
    public String name = "子类Teacher的名称";
    @Override
    public void run(){
        System.out.println("老师跑得很慢");
    }

    public void teach(){
        System.out.println("Teacher子类独有功能老师教学");
    }
}
